package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_product")
public class StorageBean {
    @TableId(value = "pk_productId")
    private Integer id;
    @TableField("p_name")
    private String name;
    @TableField("p_make")
    private String make;
    @TableField("p_type")
    private String type;
    @TableField("p_num")
    private Integer num;
    @TableField("p_iPrice")
    private Integer iPrice;
    @TableField("p_oPrice")
    private Integer oPrice = 0;
    @TableField("p_pic")
    private String pic;

    public StorageBean() {
    }

    public StorageBean(Integer id, String name, String make, String type, Integer num, Integer iPrice, String pic) {
        this.id = id;
        this.name = name;
        this.make = make;
        this.type = type;
        this.num = num;
        this.iPrice = iPrice;
        this.pic = pic;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMake() {
        return make;
    }

    public void setMake(String make) {
        this.make = make;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getiPrice() {
        return iPrice;
    }

    public void setiPrice(Integer iPrice) {
        this.iPrice = iPrice;
    }

    public Integer getoPrice() {
        return oPrice;
    }

    public void setoPrice(Integer oPrice) {
        this.oPrice = oPrice;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        return "StorageBean{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", make='" + make + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                ", iPrice=" + iPrice +
                ", oPrice=" + oPrice +
                ", pic='" + pic + '\'' +
                '}';
    }
}
